QuickTime 3 Reference

Previous | Chapter Top | Chapter Contents | Next

The Point Structure

The gxPoint structure is defined as follows:

struct gxPoint {
    Fixed   x;
    Fixed   y;
};

Field descriptions

x
A horizontal distance. Greater values of the x field indicate distances further to the right.
y
A vertical distance. Greater values of the y field indicate distances further down.

The location of the origin depends on the context where you use the point; for example, it might be the upper-left corner of a view port.

Notice that the x and y fields are of type Fixed . QuickDraw GX allows you to specify fractional coordinate positions.


© 1997 Apple Computer, Inc.

Previous | Chapter Top | Chapter Contents | Next